package Thread;

public class Thread02 implements Runnable{
    public void run(){
        for(int i=0;i<1000;i++){
            System.out.println(Thread.currentThread().getName()+":"+i);
        }
    }

    public static void main(String[] args) {
        Thread02 t1=new Thread02();
        Thread th1=new Thread(t1);
        Thread02 t2=new Thread02();
        Thread th2=new Thread(t2);
        th1.start();
        th2.start();
    }
}
